package com.dkd.tbSku.domain;

import java.time.LocalDateTime;
import java.io.Serializable;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 商品表
 * </p>
 *
 * @author zwy
 * @since 2025-05-01
 */
@ApiModel(value = "TbSku对象", description = "商品表")
public class TbSku implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private Long skuId;

    @ApiModelProperty(value = "商品名称")
    private String skuName;

    @ApiModelProperty(value = "商品图片")
    private String skuImage;

    @ApiModelProperty(value = "品牌")
    private String brandName;

    @ApiModelProperty(value = "规格(净含量)")
    private String unit;

    @ApiModelProperty(value = "商品价格，单位分")
    private Integer price;

    @ApiModelProperty(value = "商品类型Id")
    private Integer classId;

    @ApiModelProperty(value = "商品类型名称")
    private String className;

    @ApiModelProperty(value = "是否打折促销")
    private Boolean isDiscount;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }

    public String getSkuName() {
        return skuName;
    }

    public void setSkuName(String skuName) {
        this.skuName = skuName;
    }

    public String getSkuImage() {
        return skuImage;
    }

    public void setSkuImage(String skuImage) {
        this.skuImage = skuImage;
    }

    public String getBrandName() {
        return brandName;
    }

    public void setBrandName(String brandName) {
        this.brandName = brandName;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public Integer getClassId() {
        return classId;
    }

    public void setClassId(Integer classId) {
        this.classId = classId;
    }

    public Boolean getDiscount() {
        return isDiscount;
    }

    public void setDiscount(Boolean isDiscount) {
        this.isDiscount = isDiscount;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }

    public String getClassName() {
        return className;
    }

    public void setClassName(String className) {
        this.className = className;
    }

    @Override
    public String toString() {
        return "TbSku{" +
                "skuId=" + skuId +
                ", skuName=" + skuName +
                ", skuImage=" + skuImage +
                ", brandName=" + brandName +
                ", unit=" + unit +
                ", price=" + price +
                ", classId=" + classId +
                ", isDiscount=" + isDiscount +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                "}";
    }
}
